package com.wbl.gulimall.product;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * Author: 王博纶
 * Date: 2024/5/30 12:27
 * FileName: ProductApplication
 * Description: 谷粒商城 商品 模块启动类
 */
@ComponentScan("com.wbl.gulimall")
@SpringBootApplication
public class ProductApplication {

    private static final Logger Log = LoggerFactory.getLogger(ProductApplication.class);

    public static void main(String[] args) {
        SpringApplication product = new SpringApplication(ProductApplication.class);
        ConfigurableEnvironment environment = product.run(args).getEnvironment();
        Log.info("启动成功！！");
        Log.info("网关地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    }
}
